package com.jiangjiang.eshop.schedule.convert;

import com.jiangjiang.eshop.schedule.domain.ScheduleOrderPickingItemEntity;
import com.jiangjiang.eshop.wms.dto.SaleDeliveryOrderPickingItemDTO;
import com.jiangjiang.eshop.schedule.dto.ScheduleOrderPickingItemDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ScheduleOrderPickingItemConvert {

    List<ScheduleOrderPickingItemDTO> convertEntities2DTOList(List<ScheduleOrderPickingItemEntity> entities);

    List<ScheduleOrderPickingItemEntity> convertDTOList2Entities(List<ScheduleOrderPickingItemDTO> pickingItems);

    @Mapping(target = "id",ignore = true)
    SaleDeliveryOrderPickingItemDTO converDTO2SaleDeliveryPickingItem(ScheduleOrderPickingItemDTO dto);


    List<SaleDeliveryOrderPickingItemDTO> converDTOList2SaleDeliveryPickingItems (List<ScheduleOrderPickingItemDTO> scheduleOrderPickingItemDTOS);

}
